import axios from '../request'

/**
 * 知识库文件分割内容详细
 *
 */
export const knowledgeFileDetails = async (page, limit, fileId) => {
  return await axios.get(`/api/v1/knowledge/file/preview/${fileId}?page_num=${page}&page_size=${limit}`)
}

/**
 * 知识库更新
 *
 */
export async function updateKnowledgeLib(data) {
  return await axios.post('/api/v1/knowledge/upgrade', data)
}
